package cn.tedu.egweibo6.mapper;

import cn.tedu.egweibo6.pojo.entity.Weibo;
import cn.tedu.egweibo6.pojo.vo.WeiboDetailVO;
import cn.tedu.egweibo6.pojo.vo.WeiboVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WeiboMapper {
    void insertWeibo(Weibo weibo);

    List<WeiboVO> selectIndex();

    WeiboDetailVO selectById(@Param("id") Integer id,
                             @Param("username") String username);
}
